<template>
	<view class="wrap">
		<u-parse :content="detailInfo" :tagStyle="style"></u-parse>
	</view>
</template>

<script>
const app = getApp()
export default {
	data() {
		return {
			detailInfo: '',
			style: {
				// 字符串的形式
				img: 'width: 696rpx !important;height: auto;margin:0 auto 6px;display:block;'
			}
		}
	},
	onLoad(options) {
		const eventChannel = this.getOpenerEventChannel()
		eventChannel.on('parentEvent', (data) => {
			this.detailInfo = data.info
			uni.setNavigationBarTitle({
				title: data.type
			})
		})
	},
	methods: {}
}
</script>

<style lang="scss" scoped>
.wrap {
	padding: 28rpx 32rpx;
	position: relative;
}
</style>
<style lang="scss">
page {
	background: #fff;
}
</style>
